const express=require("express")
const apiRouter=express.Router()



apiRouter.post("/login",require("../controller/users").login)

apiRouter.post("/add",require("../controller/cart").add)

apiRouter.post("/register",require("../controller/register").register)

apiRouter.get("/search/:gid",require("../controller/goods").search)

apiRouter.get("/search2/:gid",require("../controller/goods").search2)

apiRouter.get("/getcarts/:uid",require("../controller/cart").getcarts)

apiRouter.post("/modifiy",require("../controller/cart").modifiy)

apiRouter.post("/delete",require("../controller/cart").delete)

apiRouter.get("/getlist",require("../controller/goods").getlist)

apiRouter.get("/getlist2",require("../controller/goods").getlist2)

apiRouter.get("/getimg",require("../controller/goods").getimg)


module.exports=apiRouter